package com.example.houduan.demos.web.controller;

import com.example.houduan.demos.web.entity.Notice;
import com.example.houduan.demos.web.entity.Process;
import com.example.houduan.demos.web.mapper.NoticeMapper;
import com.example.houduan.demos.web.mapper.ProcessMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/notice")
public class NoticeController {
    @Resource
    private NoticeMapper noticesMapper;
    @GetMapping("/getAll")
    public List<Notice> getAll(){
        return noticesMapper.findAll();
    }
}
